﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace SaiLing.SingleSignOn.Application.Core.DataTransferObject.System
{
    /// <summary>
    /// 登录参数
    /// </summary>
    public class AccountLoginModel
    {
        [Required(ErrorMessage = "APPKEY不能为空!")]
        public string AppKey { get; set; }

        /// <summary>
        /// 登录帐号
        /// </summary>
        [Required(ErrorMessage = "登录账号不能为空!")]
        [RegularExpression(RegexPatterns.FileName, ErrorMessage = "{0}不能包含以下字符:\\?<>|~")]
        public string UserName { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        [Required(ErrorMessage = "登录密码不能为空!")]
        public string Password { get; set; }
        /// <summary>
        /// 记住我
        /// </summary>
        public bool RememberMe { get; set; }

        public string Return { get; set; }
    }
}
